<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: SDK/all/include/JCMediaChannelCallback.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ca6309d378ceffb9970caf11a0592736.html">SDK</a></li><li class="navelem"><a class="el" href="dir_df301a42bdb8674e37034074c8aa490e.html">all</a></li><li class="navelem"><a class="el" href="dir_2a90b483303ce0af7319f0f0fd0c54ed.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JCMediaChannelCallback.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;JCMediaChannelConstants.h&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;JCMediaChannelParticipant.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;JCMediaChannelQueryInfo.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">class </span><a class="code" href="class_j_c_media_channel_prop_change_param.html">JCMediaChannelPropChangeParam</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html">   15</a></span>&#160;<span class="keyword">class </span>JCSDK_API <a class="code" href="class_j_c_media_channel_callback.html">JCMediaChannelCallback</a></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#aab5950490321f2c6bd4d9748106973ee">   30</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#aab5950490321f2c6bd4d9748106973ee">onMediaChannelStateChange</a>(<a class="code" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaba59b980138d98f12a87fd934cfdd55b">JCMediaChannelState</a> state, <a class="code" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaba59b980138d98f12a87fd934cfdd55b">JCMediaChannelState</a> oldState) = 0;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a8ce6d3f4ac16fd55c500f8b4e27f52bb">   38</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a8ce6d3f4ac16fd55c500f8b4e27f52bb">onMediaChannelPropertyChange</a>(<a class="code" href="class_j_c_media_channel_prop_change_param.html">JCMediaChannelPropChangeParam</a> propChangeParam) = 0;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a430bd78b28e189ee3c9564ddb7db213d">   48</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a430bd78b28e189ee3c9564ddb7db213d">onJoin</a>(<span class="keywordtype">bool</span> result, <a class="code" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* channelId) = 0;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a18bc4fae89f0d56fb849075f1603ac71">   55</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a18bc4fae89f0d56fb849075f1603ac71">onLeave</a>(<a class="code" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* channelId) = 0;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a61a1d5a81563d34f80e70541a114a74a">   64</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a61a1d5a81563d34f80e70541a114a74a">onStop</a>(<span class="keywordtype">bool</span> result, <a class="code" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason) = 0;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a864db3251f12affc38f7c95c7fdccab1">   75</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a864db3251f12affc38f7c95c7fdccab1">onQuery</a>(<span class="keywordtype">int</span> operationId, <span class="keywordtype">bool</span> result, <a class="code" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason, <a class="code" href="class_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a>* queryInfo) = 0;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#adf004e70eb654a1afbf0f3f64a76e8b8">   81</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#adf004e70eb654a1afbf0f3f64a76e8b8">onParticipantJoin</a>(<a class="code" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>* participant) = 0;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a5888058878f3aaa382b3ede94228a6e8">   87</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a5888058878f3aaa382b3ede94228a6e8">onParticipantLeft</a>(<a class="code" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>* participant) = 0;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a6cfa3d92848a80daa60ebc74a54c7042">   94</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a6cfa3d92848a80daa60ebc74a54c7042">onParticipantUpdate</a>(<a class="code" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>* participant, <a class="code" href="class_j_c_media_channel_participant_1_1_change_param.html">JCMediaChannelParticipant::ChangeParam</a> changeParam) = 0;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a6f6b72922ebc576d94f55dc153b1209d">  102</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a6f6b72922ebc576d94f55dc153b1209d">onMessageReceive</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* type, <span class="keyword">const</span> <span class="keywordtype">char</span>* content, <span class="keyword">const</span> <span class="keywordtype">char</span>* fromUserId) = 0;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#a25085c8e32313847c986582d45753357">  114</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#a25085c8e32313847c986582d45753357">onInviteSipUserResult</a>(<span class="keywordtype">int</span> operationId, <span class="keywordtype">bool</span> result, <a class="code" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason) = 0;</div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_j_c_media_channel_callback.html#adea3e7e31e00251081ade1adb2e23f31">  120</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_media_channel_callback.html#adea3e7e31e00251081ade1adb2e23f31">onParticipantVolumeChange</a>(<a class="code" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>* participant) = 0;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;};</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a6cfa3d92848a80daa60ebc74a54c7042"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a6cfa3d92848a80daa60ebc74a54c7042">JCMediaChannelCallback::onParticipantUpdate</a></div><div class="ttdeci">virtual void onParticipantUpdate(JCMediaChannelParticipant *participant, JCMediaChannelParticipant::ChangeParam changeParam)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_query_info_html"><div class="ttname"><a href="class_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a></div><div class="ttdef"><b>Definition:</b> JCMediaChannelQueryInfo.h:10</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a8ce6d3f4ac16fd55c500f8b4e27f52bb"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a8ce6d3f4ac16fd55c500f8b4e27f52bb">JCMediaChannelCallback::onMediaChannelPropertyChange</a></div><div class="ttdeci">virtual void onMediaChannelPropertyChange(JCMediaChannelPropChangeParam propChangeParam)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html"><div class="ttname"><a href="class_j_c_media_channel_callback.html">JCMediaChannelCallback</a></div><div class="ttdef"><b>Definition:</b> JCMediaChannelCallback.h:16</div></div>
<div class="ttc" id="aclass_j_c_media_channel_participant_html"><div class="ttname"><a href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a></div><div class="ttdef"><b>Definition:</b> JCMediaChannelParticipant.h:13</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a864db3251f12affc38f7c95c7fdccab1"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a864db3251f12affc38f7c95c7fdccab1">JCMediaChannelCallback::onQuery</a></div><div class="ttdeci">virtual void onQuery(int operationId, bool result, JCMediaChannelReason reason, JCMediaChannelQueryInfo *queryInfo)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_adf004e70eb654a1afbf0f3f64a76e8b8"><div class="ttname"><a href="class_j_c_media_channel_callback.html#adf004e70eb654a1afbf0f3f64a76e8b8">JCMediaChannelCallback::onParticipantJoin</a></div><div class="ttdeci">virtual void onParticipantJoin(JCMediaChannelParticipant *participant)=0</div></div>
<div class="ttc" id="agroup___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97_html_ga24a2154e4bb2db63c75b31cd2b021fc3"><div class="ttname"><a href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a></div><div class="ttdeci">JCMediaChannelReason</div><div class="ttdef"><b>Definition:</b> JCMediaChannelConstants.h:12</div></div>
<div class="ttc" id="aclass_j_c_media_channel_participant_1_1_change_param_html"><div class="ttname"><a href="class_j_c_media_channel_participant_1_1_change_param.html">JCMediaChannelParticipant::ChangeParam</a></div><div class="ttdef"><b>Definition:</b> JCMediaChannelParticipant.h:23</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a6f6b72922ebc576d94f55dc153b1209d"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a6f6b72922ebc576d94f55dc153b1209d">JCMediaChannelCallback::onMessageReceive</a></div><div class="ttdeci">virtual void onMessageReceive(const char *type, const char *content, const char *fromUserId)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a18bc4fae89f0d56fb849075f1603ac71"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a18bc4fae89f0d56fb849075f1603ac71">JCMediaChannelCallback::onLeave</a></div><div class="ttdeci">virtual void onLeave(JCMediaChannelReason reason, const char *channelId)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a5888058878f3aaa382b3ede94228a6e8"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a5888058878f3aaa382b3ede94228a6e8">JCMediaChannelCallback::onParticipantLeft</a></div><div class="ttdeci">virtual void onParticipantLeft(JCMediaChannelParticipant *participant)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_adea3e7e31e00251081ade1adb2e23f31"><div class="ttname"><a href="class_j_c_media_channel_callback.html#adea3e7e31e00251081ade1adb2e23f31">JCMediaChannelCallback::onParticipantVolumeChange</a></div><div class="ttdeci">virtual void onParticipantVolumeChange(JCMediaChannelParticipant *participant)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a430bd78b28e189ee3c9564ddb7db213d"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a430bd78b28e189ee3c9564ddb7db213d">JCMediaChannelCallback::onJoin</a></div><div class="ttdeci">virtual void onJoin(bool result, JCMediaChannelReason reason, const char *channelId)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_aab5950490321f2c6bd4d9748106973ee"><div class="ttname"><a href="class_j_c_media_channel_callback.html#aab5950490321f2c6bd4d9748106973ee">JCMediaChannelCallback::onMediaChannelStateChange</a></div><div class="ttdeci">virtual void onMediaChannelStateChange(JCMediaChannelState state, JCMediaChannelState oldState)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a61a1d5a81563d34f80e70541a114a74a"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a61a1d5a81563d34f80e70541a114a74a">JCMediaChannelCallback::onStop</a></div><div class="ttdeci">virtual void onStop(bool result, JCMediaChannelReason reason)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_callback_html_a25085c8e32313847c986582d45753357"><div class="ttname"><a href="class_j_c_media_channel_callback.html#a25085c8e32313847c986582d45753357">JCMediaChannelCallback::onInviteSipUserResult</a></div><div class="ttdeci">virtual void onInviteSipUserResult(int operationId, bool result, JCMediaChannelReason reason)=0</div></div>
<div class="ttc" id="aclass_j_c_media_channel_prop_change_param_html"><div class="ttname"><a href="class_j_c_media_channel_prop_change_param.html">JCMediaChannelPropChangeParam</a></div><div class="ttdef"><b>Definition:</b> JCMediaChannel.h:207</div></div>
<div class="ttc" id="agroup___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97_html_gaba59b980138d98f12a87fd934cfdd55b"><div class="ttname"><a href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaba59b980138d98f12a87fd934cfdd55b">JCMediaChannelState</a></div><div class="ttdeci">JCMediaChannelState</div><div class="ttdef"><b>Definition:</b> JCMediaChannelConstants.h:96</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
